package me.zhengjie.modules.security.service.dto;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @author liuwei
 * @date 2020-06-02
 */
@Getter
@Setter
public class RegisterUserDto {
    @NotBlank
    private String nickName;

    @Size(min = 6,max = 18,message = "需符合6-18字符之间")
    private String username;

    @Size(min = 6,message = "需符合6-18字符之间")
    private String password;

    @Size(min = 6,message = "需符合6-18字符之间")
    private String checkPass;

    @NotBlank
    private String email;

    @NotBlank
    private String emailcode;

    @NotBlank
    private String phone;

    @NotBlank
    private String gender;

    @NotBlank
    private String code;

    @NotBlank
    private String uuid = "";

    @Override
    public String toString() {
        return "RegisterUserDto{" +
                "nickName='" + nickName + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", checkPass='" + checkPass + '\'' +
                ", email='" + email + '\'' +
                ", emailcode='" + emailcode + '\'' +
                ", phone='" + phone + '\'' +
                ", gender='" + gender + '\'' +
                ", code='" + code + '\'' +
                ", uuid='" + uuid + '\'' +
                '}';
    }
}
